#!/usr/bin/env python
class debugger:
    """Simple debug print class"""
    def __init__(self, enable = 0, verbose= 0):
        self.DEBUG = enable
        self.VERBOSE = verbose
    
    def set_verbose(self, level):
        self.VERBOSE = level
    
    def enable(self):
        self.DEBUG = 1
    
    def disable(self):
        self.DEBUG = 0
        
    def p(self, s):
        if self.DEBUG > 0:
            print(s)

    def _assert(self, s):
        if not s:
            raise AssertionError

DEBUG = debugger(0)

if __name__ == '__main__':
    DEBUG.enable()
    DEBUG.p("Test, should print out")

    DEBUG.disable()
    DEBUG.p("Test, should not print out")